import abstractbuilder.AbstractBuilder;
import concretebuilder.TextBuilder;
import director.Director;

/**
 * @Author buyee
 * @Date 2022/7/4 下午8:13
 */
public class WriterStarter {
    public static void main(String[] args) {
        AbstractBuilder textBuilder = new TextBuilder();
        Director director = new Director(textBuilder);
        String title = "This is a title";
        String body = "This is a body";
        System.out.println(director.build(title, body));
    }
}
